Hi Rodrigo, Do you have the primary company in your data set? This needs to exist. Have a look at the demo data set, see the data regarding '<Party partyId="Company"/> and related.
Met vriendelijke groet, Pierre Smits *Proud* *contributor** of* Apache OFBiz <https://ofbiz.apache.org/> since 2008 (without privileges) *Apache Directory <https://directory.apache.org>, PMC Member* Apache Incubator <https://incubator.apache.org>, committer Apache Steve <https://steve.apache.org>, committer On Wed, Oct 20, 2021 at 4:19 PM Rodrigo Baptista < [email protected]> wrote: > Hello, > > i have a problem with ofbiz. I installed the version 17.12 and 18.12 and i > have the same issue with both versions. > > What I do: > > 1. Installed Ofbiz with initial seed data. (./gradlew "ofbiz --load-data > readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin) > 2. Start ofbiz (./gradlew ofbiz) > 3. open HR View (/humanres/control/main) > > Now i have always a exception in my logs cause by the partyId is null: > > logs: > > ----Start Log----- > > freemarker.core.InvalidReferenceException: The following has evaluated to > null or missing: > ==> partyId [in template > "component://humanres/template/category/CategoryTree.ftl" at line 60, > column 44] > ---- > Tip: If the failing expression is known to legally refer to something > that's sometimes null or missing, either specify a default value like > myOptionalVar!myDefault, or use <#if > myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover > the last step of the expression; to cover the whole expression, use > parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? > ---- > FTL stack trace ("~" means nesting-related): > - Failed at: ${partyId} [in template > "component://humanres/template/category/CategoryTree.ftl" at line 60, > column 42] > —— > ----End Log-------- > > What i need is to create a company to manage the company. > > I created also a company with the documentation ( > https://cwiki.apache.org/confluence/display/OFBIZ/How+to+Setup+a+Company) > and it not fixed the issue. > > Does anybody have a solution for me? > > > regards Rodrigo Baptista >
