cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot acces Repository Configurations via script unless have accessed them via UI first

GeorgeMcGeachie
Active Contributor
0 Kudos

I have a problem with a VB Script that includes the following code:

Set C = RepositoryConnection
output "Connected to Repository - connection is " & C
output "Connected? = " & C.Connected
output "Config count = " & C.Configurations.count & vbcrlf

C.Refresh()
C.CleanLocalCache()

for each config in C.Configurations

... do stuff

for each mdl in config.Members

.... do stuff

The problem is strange - the code can't always access the configurations and their models, and reports a count of zero. I find that I have to access the Configurations via the UI before they're available to the script. I've tried refreshing and clearing the cache (see above), but that doesn't help.

GeorgeMcGeachie
Active Contributor
0 Kudos

Actually, it's worse. If I don't access an given Configuration via the UI, the script cannot access the Model Versions in the Configuration - the value of config.Members.count is zero.

I've raised this with SAP Support

Accepted Solutions (1)

Accepted Solutions (1)

arnaud_laurent
Employee
Employee
0 Kudos

Hello,

I think it is a bug: I am opening a Change Request for this and will document it in KBA 2509786.

KR,
Arnaud

Answers (1)

Answers (1)

GeorgeMcGeachie
Active Contributor
0 Kudos

Thanks, Arnaud. Here's the link to the bug report (KBA) -

https://launchpad.support.sap.com/#/notes/0002509786