Jump to content

scribedocload trouble


Recommended Posts

  • Newbies

Hi everyone,

sorry to bother you with beginner questions, but I am unable to load a .docx document from a container field. As I would like to enable my database for DirectWeb-access, storing my docx-templates inside the database seems easier. For that I have created a table (Files) and container fields (global). One of the latter is the Aktennotiz-field in a dedicated "file container" layout.

My script :

  • ScribeDocLoad [ Container Or Url: "Files::Aktennotiz" ]
  • ScribeDocSubstitute [ Search Text: "$Case$"; Replace Text: DBC::Case ]
  • ScribeDocSubstitute [ Search Text: "$User$"; Replace Text: DBC::Operator ]
  • ScribeDocSaveFile [ Select: On; Result: ; Path: Get ( DesktopPath )&"Aktennotiz_"&DBC::Case&".docx" ]

Resulting Error messages:

ScribeDocSubstitute only supports the Microsoft Word, Microsoft PowerPoint and Microsoft Excel (2007 and newer) file format (2x)

Writing to output file is not supported for the file param.txt

Loading my docs worked with :

ScribeDocLoad [ Container Or Url: "/Volumes/DOKUS/Vorlagen/Vorlagen_Scribe/Aktennotiz_Scribe.docx" ]

I have tried to set the script up as in the demo, but didn't succeed. 

Help would be much appreciated, thanks

Marc

 

Link to post
Share on other sites

Hi Marc,

Thanks for explaining the issue clearly. It looks like your script and logic are fine.

The issue may be with the file itself. Scribe requires Microsoft Word (2007 or later) for the .docx format. You may need to save the file in a more current version of word. You can also try using Scribe on some different .docx files, and see if they are triggering the same error. What version of Scribe are you using?

Nick
360Works

Link to post
Share on other sites
  • Newbies

Hi Nick,

thanks a lot for this input. My Word Version is 2016 and Scribe is the Demo-Version of 4.0716, which I plan to license for FMS-Web use, as soon I can bring it to work locally. I tried the script with other files. I wondered if there are any requirements for the container fields, as I am using them for the first time. Along with the error-messages, the output is an empty Word File.  

Marc

Link to post
Share on other sites

Marc,

Could you please send an email to our support email support@360works.com with a copy of your document, so I can run some tests on it. I can then send you a demo database that runs the substitutions for you as an example.

Nick
360Works

Link to post
Share on other sites
  • Newbies

Hi Nick,

it's on its way. I very much appreciate you help, thanks.

Marc

Link to post
Share on other sites
  • Newbies

Hello,

I have found a solution for the problem. There was apparently a syntax error in my script, which initially was:

  • ScribeDocLoad [ Container Or Url: "Files::Aktennotiz" ]

When taking away the "", it works ScribeDocLoad [ Container Or Url: Files::Aktennotiz ] 

Maybe that helps others too. Best regards, 

Marc

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.