Getting Integration Builder To Run My Btxml Files S’abonner

0
Avatar
Legacy Poster

This should be easy but... I can't get it to work.

 

our tracking system creates BTXML files to create labels.   The BTXML contains all the info needed to print (the format file, the data, the printer, etc)

 

In Bartender I can use File, Run BTXML Script...  I select one of my BTXML files, and the label prints fine.

 

All I need is to get Integration Builder to make labels from my BTXML files!

 

I created an Integration, File Detection (the Trigger)... this seems to be working....

then the Action (I assume) would be Print BTXML Script.... this is not working.

 

My BTXML file gets moved into the Error directory (that I specified) and the error message is:

Error: Data at the root level is invalid. Line 1, position 1.

 

I read the white paper, specifically example 4 about using BTXML... but it was talking about sockets, network, ports, and stuff... way more complicated than what I'm trying to do

 

What am I missing?

 

 

 

5 commentaires

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

Sounds like something is wrong with the XML.  Can you past/attach so we can take a look?  In the integration action, I assume you set the source of the BTXML to be coming from the variable %EventData% as this automatically contains the content of your trigger event file...

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Sounds like something is wrong with the XML.  Can you past/attach so we can take a look?  In the integration action, I assume you set the source of the BTXML to be coming from the variable %EventData% as this automatically contains the content of your trigger event file...

I assume the BTXML is good as it works fine when I manually submit it in Bartender via File-> Run BTXML Script...   (I will post if needed)  

 

But I was NOT using the %EventData% ... Instead I had the variable containing the BTXML file path and name (I don't have it in front of me right now)... so that would make sense since the error comes from Line 1, Position 1...  

 

I'm going to look back in the documentation again and try to figure out if I missed that, or if that info is not there.

 

I will try that and let you know... thanks.     

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

That was it.... I changed the variable to %EventData% and it worked fine!  Thanks.

 

I used Commander before and this was the first time trying out this new Integration Builder.   I noticed when I first create a Print BTXML Script action, it defaults the variable to %Response% which didn't seem right.   When it didn't work I changed it to %DetectedFilePath% which didn't work either.

 

Now that you told me to use %EventData% I noticed that that variable was actually being recommended to me in the drop down, with another option that says "more variables..." which is where I went looking for trouble.

 

I figured it was something easy and it was, I appreciate the help.

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Hi,

 

We are using %EventData% and yet we still receive the error message "Data at the root level is invalid. Line 1, position 1."

And yet when the same data is manually used in Bartender, it prints fine.

 

Any ideas?

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

Attach the XML you're using if you want me to help you any further.

Vous devez vous connecter pour laisser un commentaire.