1. Stephane Marcoux
  2. PowerBuilder
  3. Tuesday, 12 February 2019 22:10 PM UTC

Hi, I am currently using ImportFile to import XML files in a datawindow. (PB 10.5)

I am using a template that I created.

So far it works well except when I encounter same tag elements

 

I attached a test file because the xml is removed from this question when I submit. Even if I save it as txt.

 

how can I fix that to import 4 rows with a different Attachment value  instead of getting an error?

Attachments (1)
Marco Meoni Accepted Answer Pending Moderation
  1. Wednesday, 13 February 2019 07:19 AM UTC
  2. PowerBuilder
  3. # 1

Hi Stephane,

the attachment tag should be nested within a parent tag, not repeated.

Anyhow, in order to provide a precise solution, please post your template and, on top of all, the error code that you get.

ImportFile() returns a number of error codes (from -1 to -15) which are gonna tell you what's the root of the problem.

Best,

.m

 

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.