You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Michel Dielissen <mi...@dielissen.info> on 2007/04/12 10:06:56 UTC

Error adding Text to a DataResource

Hello, I can use some help with the following.

When I try to add Text (Content\DataResource\Search\Select my
DataResource\Text tab) to a DataResource I just created I get the message:

The Following Errors Occurred:
* In set-nonpk-fields a value was not found with the specified valueAcsr:
lookedUpValue, not setting fields

I use a clean install of OFBiz (rev. 524772) which I build with "ant
run-install" (on Windows XP).

I created a new DataResource with the fields:
- Data Resource Type Id = LongText
- Data Template Type Id = No Template
- Status ID = In Progress
- Data Resource Name = MyDataResourceName
- Locale String = en_US
- Mime Type Id = text/html - HTML Text
- Is Public = Yes
The other fields which I not mentioned are empty.

Maybe it has something to do with the Status ID field which is empty with
the "store_policies" example (and which I can edit)? But I checked it and
found the Status "In_Progress" exists in the StatusItem table.

I want to make new Content just like the "store_policies" example so I:
1. create a DataResource
2. create a Text with that DataResource (which fails as described above)
3. Create a Content record
4. Create a Association to the DataResource
Am I missing something?
I red the documentation (Content Management Overview and Content Manager in
the Manager References)

Any ideas?
Thanx a lot!

Michel



-- 
View this message in context: http://www.nabble.com/Error-adding-Text-to-a-DataResource-tf3564052.html#a9954867
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Error adding Text to a DataResource

Posted by Michel Dielissen <mi...@dielissen.info>.
Hi Scott, 

Thanks very much for your quick response!
It works fine now. You made my day :-))

Michel




Scott Gray wrote:
> 
> Hi Michel
> 
> I had a look and there was a bug in the code, I've fixed this in rev.
> 527866.
> 
> Thanks
> Scott
> 
> On 12/04/07, Michel Dielissen <mi...@dielissen.info> wrote:
>>
>>
>> Hello, I can use some help with the following.
>>
>> When I try to add Text (Content\DataResource\Search\Select my
>> DataResource\Text tab) to a DataResource I just created I get the
>> message:
>>
>> The Following Errors Occurred:
>> * In set-nonpk-fields a value was not found with the specified valueAcsr:
>> lookedUpValue, not setting fields
>>
>> I use a clean install of OFBiz (rev. 524772) which I build with "ant
>> run-install" (on Windows XP).
>>
>> I created a new DataResource with the fields:
>> - Data Resource Type Id = LongText
>> - Data Template Type Id = No Template
>> - Status ID = In Progress
>> - Data Resource Name = MyDataResourceName
>> - Locale String = en_US
>> - Mime Type Id = text/html - HTML Text
>> - Is Public = Yes
>> The other fields which I not mentioned are empty.
>>
>> Maybe it has something to do with the Status ID field which is empty with
>> the "store_policies" example (and which I can edit)? But I checked it and
>> found the Status "In_Progress" exists in the StatusItem table.
>>
>> I want to make new Content just like the "store_policies" example so I:
>> 1. create a DataResource
>> 2. create a Text with that DataResource (which fails as described above)
>> 3. Create a Content record
>> 4. Create a Association to the DataResource
>> Am I missing something?
>> I red the documentation (Content Management Overview and Content Manager
>> in
>> the Manager References)
>>
>> Any ideas?
>> Thanx a lot!
>>
>> Michel
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Error-adding-Text-to-a-DataResource-tf3564052.html#a9954867
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-adding-Text-to-a-DataResource-tf3564052.html#a9957806
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Error adding Text to a DataResource

Posted by Scott Gray <le...@gmail.com>.
Hi Michel

I had a look and there was a bug in the code, I've fixed this in rev.
527866.

Thanks
Scott

On 12/04/07, Michel Dielissen <mi...@dielissen.info> wrote:
>
>
> Hello, I can use some help with the following.
>
> When I try to add Text (Content\DataResource\Search\Select my
> DataResource\Text tab) to a DataResource I just created I get the message:
>
> The Following Errors Occurred:
> * In set-nonpk-fields a value was not found with the specified valueAcsr:
> lookedUpValue, not setting fields
>
> I use a clean install of OFBiz (rev. 524772) which I build with "ant
> run-install" (on Windows XP).
>
> I created a new DataResource with the fields:
> - Data Resource Type Id = LongText
> - Data Template Type Id = No Template
> - Status ID = In Progress
> - Data Resource Name = MyDataResourceName
> - Locale String = en_US
> - Mime Type Id = text/html - HTML Text
> - Is Public = Yes
> The other fields which I not mentioned are empty.
>
> Maybe it has something to do with the Status ID field which is empty with
> the "store_policies" example (and which I can edit)? But I checked it and
> found the Status "In_Progress" exists in the StatusItem table.
>
> I want to make new Content just like the "store_policies" example so I:
> 1. create a DataResource
> 2. create a Text with that DataResource (which fails as described above)
> 3. Create a Content record
> 4. Create a Association to the DataResource
> Am I missing something?
> I red the documentation (Content Management Overview and Content Manager
> in
> the Manager References)
>
> Any ideas?
> Thanx a lot!
>
> Michel
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Error-adding-Text-to-a-DataResource-tf3564052.html#a9954867
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>