cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Template .dot --> Bad Request Error because of .docx

0 Likes
1,747

Hello,

I´ve generated a new template for training document under Documentation Style and saved this as xxxx.dot


I linked that template in Documentation settings.

In our simulation we do generate word-documents based on this template. When we open the word, review, adjust and save at the end this ends up in a document xxx.docx


This is causing a bad request error message when we want to Save to Server so that everything is available at the server.

I´ve already changed my setting in office - word to always save as .doc, doesn´t help. Any recommendations, hints what I have to take care of in the settings in Enable Now as well?


Thank you very much,

Kind Regards,

Ute

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Likes

hi all, i have similar error but with different message: "wrong file checksum of file img.png" when finish editing the simulation.
seems like an image problem, has anyone faced this before?
dirkmanuel2 ubeckers kristina.tanz

DirkManuel
Active Contributor
0 Likes

Personally, I've always found Word templates to be extremely temperamental (not just in Enable Now - I used to have a lot of problems in UPK as well). Normally, once things like this happen there's no recovering - I just throw it away and start again. And in your case it looks as though there is a checksum issue, which means that something (maybe Word, maybe Enable Now) thinks that the file (I guess the .dot) "doesn't look like it should" and is corrupted/compromised so it doesn't want to use it.

Because of the 'sensitivity to change' of the Word templates, my advice is always to:

  1. Take a copy of one of the SAP-provided ones; save it outside of Enable Now (to your local PC) and always change it there.
  2. Without changing anything (other than the name) import it (drag/drop or add file) into Enable Now, and make sure it works OK (it should if you've not changed anything).
  3. Take a 'last working version' copy of the .dot file (again, outside of Enable Now)
  4. Make a small change to the .dot file (outside of Enable Now)
  5. Bring the changed file into Enable Now, overwriting the one you put there in Step 2
  6. Test it and make sure it works. If not, revert to the Step 3 copy and try again
  7. If it does work, (maybe refresh object, save to server if you want to be extra cautious), then repeat from Step 4.

It takes a lot longer this way, but I find small, incremental changes, and confirming it still works after every small change is usually more efficient than changing everything all at once, then loading it, finding out something has gone wrong, not being able to recover because you don't know which change 'broke it', and then having to start all over again.

0 Likes

Hello Dirk,

thank you so much for your very detailed answer. I´ve tried what you recommended and I was not able to go for more than Step 2 because there is already that error message :-(.

At the end I tried with a template provided by SAP and same error. I´ve no ideas what happened and it´s very frustrating. It was working till a few days before.
I know it might be very, very, yeah extremely unlikely, but might the last Enable Now update causing that issue? Just a loud thinking as I have no more ideas.

Thanks for further hints.

Kind Regards,

Ute

DirkManuel
Active Contributor
0 Likes

That is odd. A 400 error is usually a 'bad request' - something malformed in the request sent to the server, or corrupt in the file you're sending. If you have just taken a straight copy of the SAP one, there should be nothing TO go wrong... All you did was take a copy, and rename it, right? You didn't do anything weird like have umlauts in the technical name you gave it??

Again, everything works OK with the standard documents using the default template, but then as soon as you create your own Word template things go wrong? You can save the template file to the server and finish editing OK? It's just as soon as you create a new document based on that? By default any new document will be saved with a file name of the template technical name, so make sure there's nothing odd there.

0 Likes

Hello Michael, permissions are set.

It was working before I´ve done all the changes regards to the table of content and I had to generate a 2. template for german.

Nevertheless I´ve taken the original SAP templates, changed the layout, saved as .dot and something seems to be wrong as we do get this error 😞

Any other hints? As we use cloud version - are you able to have a look on our workarea and see what is maybe wrong in my generated templates?

BR
Ute

KristinaKunad
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Ute,

yes, please contact me directly via email with the access details and I can have a look.

Take care,

Kristina

0 Likes

Hello Kristina, thanks for your quick response.

Yes it happens for all documents we generate based on the templates. 😞

I does not happen, when I generate the document and do not do any changes. But in all cases we have to do some adjustments, e.g. bring screenshot and action onto 1 page, add a side break things like that. At the end I click save disk in word. When then uploading to server it bring the error message from image above 😞

Thanks a again for a hint.


Best Regrds,

Ute

MichaelSzmrtits
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Ute,

maybe its related to a missing permission. Could you maybe check with your SAP Enable Now Admin if you have the permission: "Content: Upload Active Content" and check if this permission will solve this?

I am not really sure if this will help, but we can give it a try 🙂

Best regards, Michael Szmrtits