# Natural One can't use Construct Generation

**URL:** <https://techcommunity.softwareag.com/t/natural-one-cant-use-construct-generation/277825>\
**Category:** Forum\
**Tags:** Adabas-Natural, NaturalONE\
**Created:** [April 21, 2023, 9:42am UTC](https://techcommunity.softwareag.com/t/natural-one-cant-use-construct-generation/277825 "2023-04-21T09:42:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mateus.columbus](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/mateus.columbus/32/27195_2.png) [@mateus.columbus](https://techcommunity.softwareag.com/u/mateus.columbus)\
**Post date:** [April 21, 2023, 9:42am UTC](https://techcommunity.softwareag.com/t/natural-one-cant-use-construct-generation/277825/1 "2023-04-21T09:42:42Z")

</div>

Hi, I have a problem using Natural One construct generation.  
I didn’t find anything helpful around, maybe here someone can help me.

Thanks!

#### _Product/components used and version/fix level:_

 ![image](https://global.discourse-cdn.com/techcommunity/original/3X/a/a/aa57c9f8325748cdd5ef9c2824b67f9870faf5dd.png)

#### _Explanation of the problem:_

Whenever I try to interact with construct generation in Natural One (create, regenerate, add construct to local project ecc.) I always got the same error: NAT7301 Invalid LFILE assignment.

#### _Error messages: 1st adding construct runtime to project, 2nd generating a new object_

```auto
[11:12:27.162][ERROR][DefaultHandler] Error adding Construct resources to an existing project.
com.softwareag.naturalone.natural.paltransactions.external.PalResultException: CSOFLIST 5340 NAT7301 Invalid LFILE assignment.
	at com.softwareag.naturalone.natural.paltransactions.internal.PalTransactions.getResultException(Unknown Source) ~[com.softwareag.naturalone.natural.ndvserveraccess_9.2.1.0000-0304.jar:?]
	at com.softwareag.naturalone.natural.paltransactions.internal.PalTransactions.utilityBufferReceive(Unknown Source) ~[com.softwareag.naturalone.natural.ndvserveraccess_9.2.1.0000-0304.jar:?]
	at com.softwareag.naturalone.natural.common.server.internal.NaturalServer.utilityBufferReceive(Unknown Source) ~[com.softwareag.naturalone.natural.common_9.2.1.0000-0304/:?]
	at com.softwareag.naturalone.gen.cst.core.server.generator.NaturalCallnatInterface.callServer(Unknown Source) ~[csteclipse.jar:?]
	at com.softwareag.naturalone.gen.cst.core.server.generator.NaturalCallnatInterface.callNat(Unknown Source) ~[csteclipse.jar:?]
	at com.softwareag.naturalone.gen.cst.core.server.services.NaturalService.issueCall(Unknown Source) ~[csteclipse.jar:?]
	at com.softwareag.naturalone.gen.cst.core.server.services.CodeFrameListService.list(Unknown Source) ~[csteclipse.jar:?]
	at com.softwareag.naturalone.gen.cst.eclipse.utils.ServerUtils.getCodeFrames(Unknown Source) ~[csteclipse.jar:?]
	at com.softwareag.naturalone.gen.cst.eclipse.views.serverview.AddToExistingProjectContext.addCodeFrames(Unknown Source) ~[csteclipse.jar:?]
	at com.softwareag.naturalone.gen.cst.eclipse.views.serverview.AddToExistingProjectContext.addAll(Unknown Source) ~[csteclipse.jar:?]
	at com.softwareag.naturalone.gen.cst.eclipse.views.serverview.AddToExistingProjectContext.doProcessSelectedNode(Unknown Source) ~[csteclipse.jar:?]
	at com.softwareag.naturalone.gen.cst.eclipse.views.serverview.AbstractContext.processSelectedNode(Unknown Source) ~[csteclipse.jar:?]
	at com.softwareag.naturalone.gen.cst.eclipse.jobs.AddToExistingProjectJob.runInWorkspace(Unknown Source) [csteclipse.jar:?]
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:42) [org.eclipse.core.resources_3.14.0.v20210215-0934.jar:?]
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) [org.eclipse.core.jobs_3.10.1100.v20210111-0815.jar:?]
[11:16:44.274][ERROR][InvocationTargetExceptionHandler] Error initializing model specification: 
java.lang.reflect.InvocationTargetException: CSUCTRL 0840 NAT7301 Invalid LFILE assignment.
	at com.softwareag.naturalone.gen.cst.eclipse.client.framework.internal.wizard.CSTWizard$1.run(Unknown Source) ~[?:?]
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122) ~[?:?]
Caused by: com.softwareag.naturalone.natural.paltransactions.external.PalResultException: CSUCTRL 0840 NAT7301 Invalid LFILE assignment.
	at com.softwareag.naturalone.natural.paltransactions.internal.PalTransactions.getResultException(Unknown Source) ~[?:?]
	at com.softwareag.naturalone.natural.paltransactions.internal.PalTransactions.utilityBufferReceive(Unknown Source) ~[?:?]
	at com.softwareag.naturalone.natural.common.server.internal.NaturalServer.utilityBufferReceive(Unknown Source) ~[?:?]
	at com.softwareag.naturalone.gen.cst.core.server.generator.NaturalCallnatInterface.callServer(Unknown Source) ~[?:?]
	at com.softwareag.naturalone.gen.cst.core.server.generator.NaturalCallnatInterface.callNat(Unknown Source) ~[?:?]
	at com.softwareag.naturalone.gen.cst.core.server.generator.ModelClearInterface.callClearSubpOnServer(Unknown Source) ~[?:?]
	at com.softwareag.naturalone.gen.cst.core.server.generator.ModelClearInterface.invokeClear(Unknown Source) ~[?:?]
	... 2 more

```

---

<div class="post-metadata">

**Author:** ![Jeff\_G](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@Jeff\_G](https://techcommunity.softwareag.com/u/Jeff_G)\
**Post date:** [July 31, 2023, 9:15pm UTC](https://techcommunity.softwareag.com/t/natural-one-cant-use-construct-generation/277825/2 "2023-07-31T21:15:40Z")

</div>

Show us the steps you take to generate or regenerate a module using Construct.

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [July 31, 2023, 9:56pm UTC](https://techcommunity.softwareag.com/t/natural-one-cant-use-construct-generation/277825/3 "2023-07-31T21:56:11Z")

</div>

What platform and version is your Natural runtime?

---

<div class="post-metadata">

**Author:** ![mateus.columbus](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/mateus.columbus/32/27195_2.png) [@mateus.columbus](https://techcommunity.softwareag.com/u/mateus.columbus)\
**Post date:** [September 29, 2023, 10:19am UTC](https://techcommunity.softwareag.com/t/natural-one-cant-use-construct-generation/277825/4 "2023-09-29T10:19:20Z")

</div>

Hi,

Natural 8.4.1 on Unix

( **1st step** )

 ![image](https://global.discourse-cdn.com/techcommunity/original/3X/7/2/72ddd03c78efb8b6bbe7c1d06c66272eadd958cf.png)

( **2nd step** ) _after I select the module in 1st step_  
 ![image](https://global.discourse-cdn.com/techcommunity/original/3X/5/c/5c2a03ee13a9aae226b65afe5e1e240a0c2141f4.png)

> **Error message**
>
> java.lang.reflect.InvocationTargetException: CSUCTRL 0840 NAT7301 Invalid LFILE assignment.  
> at com.softwareag.naturalone.gen.cst.eclipse.client.framework.internal.wizard.CSTWizard$1.run(Unknown Source)  
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)  
> Caused by: com.softwareag.naturalone.natural.paltransactions.external.PalResultException: CSUCTRL 0840 NAT7301 Invalid LFILE assignment.  
> at com.softwareag.naturalone.natural.paltransactions.internal.PalTransactions.getResultException(Unknown Source)  
> at com.softwareag.naturalone.natural.paltransactions.internal.PalTransactions.utilityBufferReceive(Unknown Source)  
> at com.softwareag.naturalone.natural.common.server.internal.NaturalServer.utilityBufferReceive(Unknown Source)  
> at com.softwareag.naturalone.gen.cst.core.server.generator.NaturalCallnatInterface.callServer(Unknown Source)  
> at com.softwareag.naturalone.gen.cst.core.server.generator.NaturalCallnatInterface.callNat(Unknown Source)  
> at com.softwareag.naturalone.gen.cst.core.server.generator.ModelClearInterface.callClearSubpOnServer(Unknown Source)  
> at com.softwareag.naturalone.gen.cst.core.server.generator.ModelClearInterface.invokeClear(Unknown Source)  
> … 2 more

( **3rd step** ) _after ignoring the error_  
I fill the fields with correct data, as I would do in NCSTG via ssh ndv.

( **4th step** ) _after pressing **FINISH** button._  
 ![image](https://global.discourse-cdn.com/techcommunity/original/3X/e/a/ea9e6f5892fdffaab94d658308b03d345a7c83d1.png)

**Same thing with every module I try to generate**

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [September 29, 2023, 3:11pm UTC](https://techcommunity.softwareag.com/t/natural-one-cant-use-construct-generation/277825/5 "2023-09-29T15:11:01Z")

</div>

what parameters are you passing to the NDV server? If you login to the host Natural terminal session and use SYSFILE command, what LFILE assignments do you see? Add those LFILE’s to your parameters when connecting to NDV (Server Mapping Properties) and see if that resolves the problem. If it does, ask your Natural administrator to include the LFILE parameters in the natparm module being used by NDV.

---

<div class="post-metadata">

**Author:** ![mateus.columbus](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/mateus.columbus/32/27195_2.png) [@mateus.columbus](https://techcommunity.softwareag.com/u/mateus.columbus)\
**Post date:** [October 4, 2023, 10:41am UTC](https://techcommunity.softwareag.com/t/natural-one-cant-use-construct-generation/277825/6 "2023-10-04T10:41:52Z")

</div>

Hello,

Didn’t resolved anything by me.  
I told my Administrator about this Lfile problem and he edited my natparm config file, now it works fine.

Thank you!!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 1, 2024, 10:42am UTC](https://techcommunity.softwareag.com/t/natural-one-cant-use-construct-generation/277825/7 "2024-04-01T10:42:15Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
