Aller au contenu principal

Recherche

Recherche

Web Service Integration Gets Empty Error

Commentaires

11 commentaires

  • Avatar
    Ian Cummings
    Modérateur

    Can you attach the integration file and document for us to examine?  The error doesn't tell us why the print job failed.  A quick guess would be that an invalid printer was selected or that the printer used resulted in a page setup problem.  Did you enable message logging in BarTender and then check the log after the attempted print?  That might give you more information.

    0
  • Avatar
    Legacy Poster

    here i uploaded files http://www.filedropper.com/integration

    i enabled logging (via the "Administer > Log Setup > Text File Log" dialog) and test integration, but no logging file eppeared.

    Fiddler shows this http://prntscr.com/9p67y9

    0
  • Avatar
    Ian Cummings
    Modérateur

    Looking at the integration, the URL for your web service would be found at: "http://localhost/Integration/merchmgr/Execute" which is different to what you quoted in the original post.  Note that the integration name "merchmgr" forms part of the overall URL.

     

    In the Print Document action I note that the BTW file is loaded from the E:\ drive letter: E:\Jobby\bt\ex.btw.  Is that a local drive or a mapped network folder?  I ask as mapped drives are user account specific and only exist when logged into the account as an interactive user.  If the latter then I suggest you make use of a UNC path instead that uses the syntax \\ServerName\ShareName.  If you are writing the message log to the same location then this might be why nothing gets created. 

    0
  • Avatar
    Legacy Poster

    "E:" is my local drive and integration service successfully finds btw file (i checked not existing file and integration service points me this failure)

    "merchmgr" and "myintegration" are ok and i careful with it (i use appropriate url in the browser, and it is clear when url doesn't exist, because browser says HTTP Error 404)

     

    so i still need help, at least get valid error message, but not empty!

    0
  • Avatar
    Ian Cummings
    Modérateur

    Run the integration and/or the print action under a specific user account (such as the one you log into windows with) just in case we're hitting a permissions issue in BarTender.  Note that without a log file of the BarTender message log I'm flying blind on what might be happening.

    0
  • Avatar
    Legacy Poster

    Hi,

     

    finally i could get an error description: "Print job 'ex.btw' did not complete due to the following error: There is an error in the Page Setup dialog.  Please fix the problem and try again.    14.1.2016 19:27:57.522"

    log file has almost the same : "2016-01-14    19:04:16    3704    Error    Printer    OK    There is an error in the Page Setup dialog.  Please fix the problem and try again."

     

    could you please help to solve this issue ? thanks!

    0
  • Avatar
    Ian Cummings
    Modérateur

    You need to open up the document in question for the printer to be used, and then check the "Page Set-up" dialog in BarTender to understand while the document/printer combination is invalid.

    0
  • Avatar
    Allen Arthur Cook

    To add to this since I am also getting an "Empty" error. Wouldn't it be better to not show the dialog on the server, which shouldn't be interacted with and instead to capture the error and send it to the response?

     

    I have an error where an image file may be gone, due to some user actions. I would like the integration service to tell me this instead of dumping my response template back at me.

    0
  • Avatar
    Allen Arthur Cook

    Right know if there is any error the service will return the response template without filling in any information. Looks like it stops the integration as soon as it hits an error.

    Instead I would like to see the error on the return.

    my template is this

    <Result>
    %Response%
    <Messages>%PrintJobMessages%</Messages>
    <Status>%PrintJobStatus%</Status>
    </Result>

    What I expect to get is

    <Result>

       <Response Version="2.0" AppName="BarTender" AppVersion="11.0" AppVersionId="1100" AppVersionMajor="11" AppVersionMinor="0" AppVersionBuild="3056" AppInstancePid="6344" AppInstanceGuid="{AAA3983D-A461-46B2-8448-C7A2172B9AE3}">

          <User>{User}</User>

          <Server>{server}</Server>

          <Command Name="Job1">

             <ExportPrintPreviewToImage>

                <Message Id="3608" Guid="{14EE9AFA-FE72-4F31-BFAD-10722B4401EC}" Severity="Error" Category="Miscellaneous" Response="Continue">

                  <Text>An error occurred or the picture file "\\lnaops.liebert.com\e$\www\lnaops\SerialTags\Labels\Logos\Intertek_ETL_Listed_CUS.bmp" was not found.

    Picture Object: "Picture 1"

    Image Error -50001: </Text>

                 </Message>

                 <ImageData Page="1" ImageFormatType="jpg">{data}</ImageData>

            </ExportPrintPreviewToImage>

        </Command>

    </Response>
    <Messages>

    An error occurred or the picture file "\\lnaops.liebert.com\e$\www\lnaops\SerialTags\Labels\Logos\Intertek_ETL_Listed_CUS.bmp" was not found.

    Picture Object: "Picture 1"

    Image Error -50001: </Messages>
    <Status>Failure</Status>
    </Result>

    instead I'll get an error message on the integration server and just the template on the client

     

    0
  • Avatar
    Ian Cummings
    Modérateur

    If I make a print command in a simple test document which contains a data sourced picture that I supply at print time with a bogus picture file name, and use something like the below print parameters:

    <Print WaitForJobToComplete="true" Timeout="5000" ReturnPrintData="true" ReturnSummary="true" ReturnLabelData="true" ReturnChecksum="true">

    Note: The above example is in BTXML, but you can configure the same in a regular Print Document command.

    And I set the error handling for the Print Document action to ignore errors and continue running actions.

    The I get something like the below message information in the XML response:

    <Message Id="3608" Guid="{B023DA3C-7BF2-40E4-A541-55219B373963}" Severity="Error" Category="Miscellaneous" Response="Cancel"><Text>An error occurred or the picture file "C:\Seagull\Pictures\ProductX.png" was not found.

    Picture Object: "Picture 1"

    Image Error -10: The specified file was not found.</Text></Message>

    Does this not cover what you are after?

    0
  • Avatar
    Allen Arthur Cook

    Close, I'm attempting to issue an ExportPrintPreviewToImage command not a print (users want to review the tag to ensure the data they entered is correct), but I'll definitely be trying your suggestion when I move on to the printing portion of my integration

    0

Vous devez vous connecter pour laisser un commentaire.