-
Notifications
You must be signed in to change notification settings - Fork 15
Cannot get Represt to work with project where Configuration Management in DNG is enabled #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Works for me :-) From your screenshot it's the OSLC Query to find the module from its name "100000-Segment 1.1 VOI" that's failing, so it's not got as far as using the Reportable REST API. Try with a different module? What version of elmclient are you using? What DOORS Next version and ifix are you using? |
Thank you for your answer, I really appreciate. The Versions are: ![]() ![]() The Module name: ![]() I tried it with four different Modules and I still have errors. I renamed the folder elmclient by elmclient-old and I freshly reinstalled it. Still doesn't work. Is there a deeper debug mode I could enable or a log that I could provide? Here is the complete error code... ----->NOTE: the editor here does not paste the text as it is... Below is the text and down below is the screenshot of the text...When you paste the text, it is ok, but when you click "Update comment" the text is different... C:>represt rm resources -J "https://server.clm.ibmcloud.com" -U MyUsername -P password -p "ProjectName" -c Requirements -l "ProjectName Initial Stream" -m "402620-Technoparc" -C "C:\TEMP##aatest\test-new-module1.csv"-V Traceback (most recent call last): SCREENSHOT OF THE TEXT ABOVE.... ![]() ![]() |
Add Try adding Also, are you able to use the oslcquery example, does something like this work (doing the same query for the module)? |
I think this might be something I've fixed indirectly - just updated to version 0,29.0 please try that from pypi and hopefully it will work. |
Ok, I tried 0,29.0. Result is the same. I added -W and -L TRACE , the log is attached here. elmclient-20250401-144612 - obfuscated.log For the oslcquery , here is the output screenshot: ![]() Here is the output in an opt-out (CM disabled) project, it works. ![]() I also found this on the web, An old case but that generated similar error messages involving config context... |
Did you try the oslcquery command? |
Yes, as stated above. The big screenshot is the output of the error generated after the oslcquery line was sent. I also tried it on my home PC. Fresh installation of Python and elmclient. The error message is the same and the header in the log is the same as in the above log. |
Also, I will start a new comment for this before it's a new finding.... In DOORS NEXT, when I choose to see all My Projects, I see the two projects. the Demo project is the one that works and exports to the csv file. The other one, which has its name hidden with the yellow box, is the one that's not working. This one has a component...When I click on Show Component, I get the other window below that says that a component name called "Requirements" exists. I think there is something missing to go one level deeper inside that component to get the Modules. But how do we do this? In the URL of my open DNG there is this string: "&componentURI=https://server.com/rm/rm-projects/_uErTUHN5Eeq8dvNydv8COA/components/_upG2EHN5Eeq8dvNydv8COA" the project area is at the beginning as you can see, then there is a sub-level named "Component" would that be the issue? |
Another finding: In the get HTTP URL, the Module URI is not there, only the literal title: The Module name is: 402620-Technoparc The Module URI is: MD_C1L58Bo8Eeylw979BSgNIA Shouldn't the module be called by its URI instead of the literal form? |
I also redo the test for OSLCquery. The comand I used was this one: oslcquery -J " https://Server.ibmcloud.com" -U Username -P Password -p "Project" -C "Requirements" -F "Project Initial Stream" -q "dcterms:title="402620-Technoparc"" -V -W -L DEBUG It still didn't work but the data in the log is different. The output window data is below and the debug log attached. ![]() |
Hi, I tried everything I could think of, but still doesn't work. It works only with OPT-OUT project not when in a OPT-IN project. Regards, |
Hi Denis I use oslcquery all the time on opt-in projects, so I don't think that's the issue. represt I don't use much, but AFAICT it works with opt-in. I'll have to review what you provided, hopefully I can figure out the problem. Does the project have archived configurations or components? Regards |
Hi Ian, There are no archived configurations or components. Tell me, are there any calls in this code that would require me to have an admin role in DNG? Thank you, |
Good morning Ian, Did you have time to look at what could be the issue? Thank you! |
Hi Ian, I know this is a collaborative project and that it is worked on only when people have time to do so. If you don't have time to look at the issue, would there be someone else that could look at it? I have put more details on the issue to extract a Module from our DNG to csv. If someone can look at it , I would really really appreciate it! Thank you, |
Hi, Here are a couple of things more that we did. We created a new project, opt-in, in which I have fill admin access rights, and I tried to export a module using the same command string and it still doesn't work. From this point, we will stop working on this. We have thousands of users around the world that use DNG and they will not be able to enjoy all this work. That's so unfortunate. Thanks, |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
When I use the below strings in a project that has Configuration Management enabled (Opt-in), it never works. Would someone know why it's like that?
represt rm resources -J "https://server" -U username -P password -p "Project" -c Requirements -l "Project Initial Stream" -m "100000-Segment 1.1 VOI" -C "C:\TEMP##aatest\test1.csv"-V
Error message:
(...)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://...
[PYI-37292:ERROR] Failed to execute script 'represt' due to unhandled exception!
Some help would be very appreciated.
Thank you,
Denis
Screenshot to show what is working in my browser and when comparing it to the URL I get from the represt error message.
The text was updated successfully, but these errors were encountered: