Page 2 of 2

Re: Error while opening jpg from note

Posted: Fri Nov 04, 2016 7:44 pm
by date
After the binary-to-text part ;)

Code: Select all

<?xml version="1.0"?>
<notebook version="3402" uid="8ec8ecbf-6d1f-41a3-b7be-2acb6a9a1d72">
   <tags>
      <tag name="tag1" autodeleted="1" autoexpanded="0" />
      <tag name="tag2" autodeleted="1" autoexpanded="0" />
   </tags>
   <sections>
      <section id="0" num="0" name="Hauptbereich" color="#005af0" />
   </sections>
   <files>
      <file hash="36a266f697a3f791540dcf58a4005240afedcb41" size="6116" compressedSize="6092">
         <chunk>eF51mGVQFIC39pdwEZSUBmmQ7kZAWrprSYEFaXbplpYWWLq7Q2JpFFhAFmkEhWXpbpSSuv7nnXnv-XDvOWfmmXPOPJ*ebz8ddSxsUgAA8BSgEt31mjB8UPc9BgAgiAkAPPt3dXG0Bbt5gnm9-LzAKXLaG-xEUScp5-T*L9h4P82pvyj9f8NhXXUnwD-88P815B-akHxn*2-AHxO0RU=  (and so on...)</chunk>
      </file>
   </files>
   <rules>
      <rule name="rule1" active="1">
         <if>
            <and>
               <field name="title" op="contains" value="title" />
            </and>
         </if>
         <then>
            <action type="tag" params="tag1" />
         </then>
      </rule>
      <rule name="tag2" active="1">
         <if>
            <and>
               <field name="attachments" op="isempty" value="" />
            </and>
         </if>
         <then>
            <action type="tag" params="tag2" />
         </then>
      </rule>
   </rules>   
   <note uid="b308970a-facb-4bd2-a2cd-e3a5d6f37e73" title="title1" created="20161104T203309" modified="20161104T203424" source="" link="" remarks="" tags="tag1" section="0" plainText="1">
      <![CDATA[content1]]>
      <attachments>
         <attachment name="attachment2.zip" hash="36a266f697a3f791540dcf58a4005240afedcb41" />
      </attachments>
   </note>
   <note uid="8d8e9fd9-84ff-40b1-b572-c3a542fe5780" title="title2" created="20161104T203314" modified="20161104T203314" source="" link="" remarks="" tags="tag1 tag2" section="0" plainText="1"><![CDATA[content2
]]></note>
</notebook>

You can open the xml with any text reader by the way, IE 7 works too. Press Ctrl-F, type <rules> and enter to find it quickly.

Re: Error while opening jpg from note

Posted: Sun Nov 06, 2016 4:11 am
by CintaNotes Developer
That's definitely not XML, probably you're trying to open a zip file?

Re: Error while opening jpg from note

Posted: Wed Nov 09, 2016 7:38 am
by awm
Finally, I found the rules section (see below).
I appreciate it if you can solve my import problem with this rules included.
But, since the error appeared once in one note with one jpg, for me there is no urgency.
I can wait for a new version of CN with a bug fix in it for this.

May be you can use my rules to do some inquiry on this bug?

Thanks for the help anyway

=====================================================================================
<rules>
<rule name="Organisatie/VUmc/Div-I/Nefrologie Dossiers/DiamantVUmc" active="1">
<if>
<and>
<field name="section" op="equals" value="DIAMANT VUmc" />
</and>
</if>
<then>
<action type="tag" params="Organisatie/VUmc/Div-I/Nefrologie" />
<action type="tag" params="Dossiers/DiamantVUmc" />
</then>
</rule>
<rule name="[=]-Document" active="1">
<if>
<and>
<field name="title" op="starts" value="[=]" />
</and>
</if>
<then>
<action type="tag-untag" params="[=]-Document" />
</then>
</rule>
<rule name="[*]-Website" active="1">
<if>
<and>
<field name="title" op="starts" value="[*]" />
</and>
</if>
<then>
<action type="tag-untag" params="[*]-Website" />
</then>
</rule>
<rule name="[~]-EigenAantekeningen" active="1">
<if>
<and>
<field name="title" op="starts" value="[~]" />
</and>
</if>
<then>
<action type="tag-untag" params="[~]-EigenAantekeningen" />
</then>
</rule>
<rule name="[$]-LeverancierProductDienst" active="1">
<if>
<and>
<field name="title" op="starts" value="[$]" />
</and>
</if>
<then>
<action type="tag-untag" params="[$]-LeverancierProductDienst" />
</then>
</rule>
<rule name="&gt;:-Intake" active="1">
<if>
<and>
<field name="title" op="starts" value="&gt;:" />
</and>
</if>
<then>
<action type="tag-untag" params="&gt;:-Intake" />
</then>
</rule>
<rule name=":&lt;&gt;:-Overlegnotities" active="1">
<if>
<and>
<field name="title" op="starts" value=":&lt;&gt;:" />
</and>
</if>
<then>
<action type="tag-untag" params=":&lt;&gt;:-Overlegnotities" />
</then>
</rule>
<rule name="Organisatie/AMC/Div-H Organisatie/VUmc/Div-V Organisatie/VUmc/Dnst-BIZA Organisatie/AMC/Dnst-DAD Dossiers/MED_APO-ERP" active="1">
<if>
<and>
<field name="section" op="equals" value="MED APO ERP" />
</and>
</if>
<then>
<action type="tag" params="Organisatie/AMC/Div-H" />
<action type="tag" params="Organisatie/VUmc/Div-V" />
<action type="tag" params="Organisatie/VUmc/Dnst-BIZA" />
<action type="tag" params="Organisatie/AMC/Dnst-DAD" />
<action type="tag" params="Dossiers/MED_APO-ERP" />
</then>
</rule>
<rule name="[#]-Map" active="1">
<if>
<and>
<field name="title" op="starts" value="[#]" />
</and>
</if>
<then>
<action type="tag-untag" params="[#]-Map" />
</then>
</rule>
<rule name="Organisatie/EVA-SC/IM" active="1">
<if>
<and>
<field name="section" op="equals" value="informatiemanagement" />
</and>
</if>
<then>
<action type="tag-untag" params="Organisatie/EVA-SC/IM" />
</then>
</rule>
<rule name="[?]-Openstaande_vragen" active="1">
<if>
<and>
<field name="text" op="contains" value="[?]" />
</and>
</if>
<then>
<action type="tag-untag" params="[?]-Openstaande_vragen" />
</then>
</rule>
<rule name="[F]-Follow-up" active="1">
<if>
<and>
<field name="text" op="contains" value="[F]" />
</and>
</if>
<then>
<action type="tag-untag" params="[F]-Follow-up" />
</then>
</rule>
<rule name="[A]-PersActiepunt" active="1">
<if>
<and>
<field name="text" op="contains" value="[A]" />
</and>
</if>
<then>
<action type="tag-untag" params="[A]-PersActiepunt" />
</then>
</rule>
<rule name="[::]-Emailbron" active="1">
<if>
<and>
<field name="text" op="contains" value="[::]" />
</and>
</if>
<then>
<action type="tag-untag" params="[::]-Emailbron" />
</then>
</rule>
<rule name="[p]-ProjectplaceProject" active="1">
<if>
<and>
<field name="title" op="starts" value="[p]" />
</and>
</if>
<then>
<action type="tag" params="[p]-ProjectplaceProject" />
</then>
</rule>
<rule name="[!]-Belangrijk" active="1">
<if>
<and>
<field name="text" op="contains" value="[!]" />
</and>
</if>
<then>
<action type="tag-untag" params="[!]-Belangrijk" />
</then>
</rule>
<rule name="Organisatie/VUmc/Div-I/Nefrologie" active="1">
<if>
<and>
<field name="tags" op="hasall" value="Dossiers/DiamantVUmc" />
</and>
</if>
<then>
<action type="tag" params="Organisatie/VUmc/Div-I/Nefrologie" />
</then>
</rule>
</rules>
===========================================================================================

Re: Error while opening jpg from note

Posted: Wed Nov 09, 2016 8:42 am
by CintaNotes Developer
awm,

thanks a lot for the XML! I confirm that there is a problem with importing this rules XML.
Added the task to the next version plan.

Re: Error while opening jpg from note

Posted: Thu Dec 22, 2016 5:11 am
by CintaNotes Developer
Hi awm,

Could you please tell if the rule import problem still is present in the last beta? Thanks!