Solved

Creation of xml (exact globe) from sql for importing invoice

  • 1 December 2023
  • 2 replies
  • 48 views

Userlevel 2
Badge +5

Hi, 

I have to generate an xml for importing invoice into EXACT globe. 

The xml will be generated using a sql code within a task. 

Can you please guide in what should be the CDATA format for the code?

 

  1. I tried below code for processing it: 

'<![CDATA[ ' +cast(i.display_invoice_number as varchar) + ' ]]>' as        Description 

Below is the error after its processed in excat : 

Image from EXACT
  1. Removed the CDATA and sent it as below : 
    CONCAT('< ', cast(i.display_invoice_number as varchar), ' >') as        Description
    Still it was not processed in EXACT, and no error message was provided

  2. In the exact knowledge base its mentioned that below characters can be used : 
     

    string

    Strings in XML can contain all normal characters except &, <, >, " and '. These characters need to be replaced by &amp;, &lt;, &gt;, &quot; and &apos; respectively

    So updated the Descritption to below code :

     '&lt;![CDATA[ ' +cast(i.display_invoice_number as varchar) + ' ]]&gt;' as     Description
    The output after processed in Exact : 
     

    Image from EXACT

Can someone please guide?

icon

Best answer by Rucha Naik 8 December 2023, 09:47

View original

This topic has been closed for comments

2 replies

Userlevel 6
Badge +16

Since this is more an exact issue and not so much a software factory issue I'm not sure you will get an answer on this community. If you need further assistance with creating the exact interface you can contact your Thinkwise account manager about the possibilities. 

Userlevel 2
Badge +5

I was able to resolve it. Its now getting processed at exact.