Can I turn off checking for href's, conref's in Content Importer?

I am using Content Importer 14.0.3.

I exported a publication from Tridion Docs 14, and I am adding metadata values to the .met files for many DITA topics. I want to import a few DITA topics and their .met files back into Tridion Docs.

The import fails if @href's or @conrefs in the DITA files point to GUIDs that are not in the files I am uploading. The GUIDs are all inside of Tridion Docs, so I am not worried that they are missing in the upload. Can I turn this off so Content Importer will import these topics and .met files?

Thanks,

Mark

P.S. Also, how do I change my email address in this forum? Settings will not let me change it.

emoji
Parents
  • Hey Mark,

    That's a known bug in Content Importer. I reported it to RWS support soon after we upgraded to 14. 

    To get around this issue, I wrote a couple of ISH Remote scripts that comment out all CCMS references, then uncomment them after Content Importer has imported the publication. I figured out that Content Importer doesn't act upon XML comments, so you can avoid href validation errors so long as you comment out the offending code. The only task is then to uncomment the hrefs once the DITA is imported. I know that my solution is a bit hacky, but I didn't see any alternative. 

    I'd be willing to share my scripts if you want them. Just let me know.

    josh

    emoji
  • Josh, thanks for your tip and I would like to see your scripts if possible, for general info. I have done a lot of scripting with ISHRemote.

    But I figured out what my problem was with Content Importer.

    From the Home page, I click Standard Import.

    On the Standard Import page, there are 2 tabs that I had been ignoring: Generic DITA Content and Repository DITA Content. I had always used Generic DITA Content. But when I tried using the Repository DITA Content tab, it solved all my problems! It let me upload exported DITA files with missing target href topics, missing conref target topics, etc, without errors. I can upload just a couple of topics, or a whole publication.

    Screenshot of Content Importer's Standard Import page with two tabs: 'Generic DITA Content' and 'Repository DITA Content'. The 'Repository DITA Content' tab is circled in red with arrows pointing to it.

    These tabs were not mentioned in the Content Importer help, that I could find. In the command line docs there was one little mention of an option for repository content, that was it. I guess the tabs in the UI were too subtle for me.

    Something else I discovered: All I wanted to change were a bunch of .met files, but I could not upload .met files by themselves. I had to also upload the topic .xml file that the .met file was associated with, and then Content Importer was happy and would import them.

    Dave, thanks for the tip and the video. The video does cover what I discovered above, and it would have helped. From the video, I also learned that there is a Content Importer config file that might help with this problem also:

    C:\Users\<username>\AppData\Local\SDL\InfoShare Client\14.0\Trisoft.ContentImporter.config

    There is a validateReferences option with a few settings that might help. I have not tried it yet. The video covers it.

    https://www.youtube.com/watch?v=2oe1MGuq6Y4&t=1794s

    Mark

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 8:21 PM (GMT 1) on 7 Jun 2024]
  • Hey Mark,

    Thanks for all the information.

    Unfortunately, the UI options that you indicated are not available to us with the exception of the config file (obviously). We are using the 14.0 version and it looks like RWS dev must have patched the issue in a subsequent service pack. The solution does look really nice though and I'm looking forward to using it after we upgrade to 15.1.

    Turning off validation makes me uneasy as doing so would permit import of bad references. Troubleshooting the aftermath might be more costly than if we just comment out/in the problematic refs. 

    It sounds like you found your way around this one without scripting a workaround, so I'll forgo posting the files.

    Thanks again and glad you found a (considerably) less complicated solution!
    josh

    emoji
Reply
  • Hey Mark,

    Thanks for all the information.

    Unfortunately, the UI options that you indicated are not available to us with the exception of the config file (obviously). We are using the 14.0 version and it looks like RWS dev must have patched the issue in a subsequent service pack. The solution does look really nice though and I'm looking forward to using it after we upgrade to 15.1.

    Turning off validation makes me uneasy as doing so would permit import of bad references. Troubleshooting the aftermath might be more costly than if we just comment out/in the problematic refs. 

    It sounds like you found your way around this one without scripting a workaround, so I'll forgo posting the files.

    Thanks again and glad you found a (considerably) less complicated solution!
    josh

    emoji
Children
No Data