Unable to create report error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swathicl
    Visitor
    • Oct 2015
    • 5

    Unable to create report error

    Hi,
    I am trying to do a simple comparison of 2 files and generate a text report via the command line. The command I am using is
    BCompare.exe "@MyScript.txt" "File1.txt" "File2.txt" "MyReport.txt"

    And my script file has:
    text-report layout:side-by-side options:display-all, line-numbers &
    output-to:"%3" output-option:html-color "%1" "%2"

    I get the following error:
    01/10/2015 11:49:51 >> text-report layout:side-by-side options:display-all, line-numbers &
    01/10/2015 11:49:51 >>
    01/10/2015 11:49:51 Fatal Scripting Error: Unable to create report: Unable to load options:display-all,: Invalid URL:
    01/10/2015 11:52:30 Script completed in 2 minutes, 39 seconds

    Please help me understand where I am going wrong.

    Thanks,
    Swathi.
  • chrroe
    Pooh-Bah
    • Oct 2007
    • 588

    #2
    Hello Swathi,

    your script has a little syntax error: It must be output-options:html-color instead of output-option:html-color

    In the BC-helpfile you can find the scripting reference where all parameters are described ...

    Bye
    Christoph

    Comment

    • swathicl
      Visitor
      • Oct 2015
      • 5

      #3
      Hi Christoph,

      I tried with the correct syntax too, but keep getting the same error. I just don't seem to understand what I'm missing here in terms of the script.

      Thanks,
      Swathi.

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 16009

        #4
        Also, remove the space between arguments: display-all,line-numbers

        If you are still having trouble, could you post your script.txt file as an attachment? My hunch is that there is an invalid character or whitespace issue. Also, can I confirm you are running BC4.1.1?
        Aaron P Scooter Software

        Comment

        • swathicl
          Visitor
          • Oct 2015
          • 5

          #5
          Hi Aaron,
          I deleted that extra space, removed the ampersand and let the entire code reside in one line in my script file and now it works.

          Thanks for your suggestion.

          Comment

          Working...