gcam-core icon indicating copy to clipboard operation
gcam-core copied to clipboard

GCAM7.0 errors: unable to query GDP

Open stm19950929 opened this issue 2 years ago • 5 comments

Unable to query GDP in modelinterface witin gcam 7.0 version.

stm19950929 avatar Jun 07 '23 02:06 stm19950929

GDP will be under socioeconomics / National Account

realxinzhao avatar Jun 07 '23 03:06 realxinzhao

I can find the relevant flow in query.xml, but not in modelinterface. image image

stm19950929 avatar Jun 07 '23 03:06 stm19950929

Your model interface is likely pointing to a Main_queries.xml in an older workspace. You can look for a model_interface.properties file and edit that. Within there you will see something like:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>TODO: add comments</comment>
<entry key="remove1975">true</entry>
<entry key="queryFile">/Users/pralitp/model/gcam-github/output/queries/Main_queries.xml</entry>
<entry key="queriesSplit">466</entry>

Make sure the "queryFile" is pointing to the appropriate place.

pralitp avatar Jun 07 '23 03:06 pralitp

Your model interface is likely pointing to a Main_queries.xml in an older workspace. You can look for a model_interface.properties file and edit that. Within there you will see something like:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>TODO: add comments</comment>
<entry key="remove1975">true</entry>
<entry key="queryFile">/Users/pralitp/model/gcam-github/output/queries/Main_queries.xml</entry>
<entry key="queriesSplit">466</entry>

Make sure the "queryFile" is pointing to the appropriate place.

I've got it, problem solved, thanks for your advice!

stm19950929 avatar Jun 07 '23 03:06 stm19950929

Hi, I am having a similar issue (unable to query GDP) but I am using Mac version and I don't find "model_interface.properties" file in Mac version of GCAM. Can someone help me how to resolve this issue in Mac version?

msispah avatar Oct 18 '23 02:10 msispah