Unable to create a vm with hammer

when I try to create a VM with hammer on vmware I get an error message (it work with same parameters on the GUI !)

hammer -d host create
–name “sbxtest”
–domain “foreman-install.sample.com
–managed “true”
–compute-resource-id 1
–compute-profile-id 2
–hostgroup “templating”
–compute-attributes “cpus=2,corespersocket=2,memory_mb=4096,firmware=efi,resource_pool=Resources,path=/Datacenters/DC-test-SBX/vm”
–volume “datastore=DS1,thin=true,size_gb=80”
–root-password “dog8code”
–interface “identifier=ens224,primary=true,provision=true,manage=true,compute_network=dvportgroup-1693”
–interface “identifier=ens192,primary=false,provision=false,manage=false,compute_network=dvportgroup-676”
–provision-method build
–organization-id 1
–location-id 2
–pxe-loader “PXELinux UEFI” --architecture “x86_64” --medium “WL RHEL 9.0”
–operatingsystem “WL RHEL 9.0” --partition-table “WL-PART-RH9-0522”

Problem:
error given :
Failed to create a compute sandbox (VMware) instance otvmi347.foreman-install.worldline.com: undefined method `resourcePool’ for #RbVmomi::VIM::Folder:0x000056518bbc3fa8

Expected outcome:
a new VM !

Foreman and Proxy versions:
3.3

Foreman and Proxy plugin versions:

Distribution and version:
RHEL8

Other relevant data:
production.log for GUI creation :
2023-01-25T16:01:50 [I|app|5834c383] Parameters: {“utf8”=>“✓”, “authenticity_token”=>“xkEd2xZCX2tPEkhZgCDCuQgR+yyoitIPac3+qYtEVT0XQCij5lVzwZOsU9DVVKV2wjK8YnNALCy9yCB6hADq1g==”, “host”=>{“name”=>“vmitest”, “organization_id”=>“1”, “location_id”=>“2”, “hostgroup_id”=>"", “compute_resource_id”=>“1”, “compute_profile_id”=>“2”, “puppet_attributes”=>{“environment_id”=>“1”}, “puppet_proxy_id”=>"", “puppet_ca_proxy_id”=>"", “puppetclass_ids”=>[""], “managed”=>“true”, “progress_report_id”=>"[FILTERED]", “type”=>“Host::Managed”, “interfaces_attributes”=>{“0”=>{"_destroy"=>“0”, “type”=>“Nic::Managed”, “identifier”=>"", “name”=>“vmitest”, “domain_id”=>“1”, “subnet_id”=>“2”, “ip”=>“10.10.10.44”, “ip6”=>"", “managed”=>“1”, “primary”=>“1”, “provision”=>“1”, “virtual”=>“0”, “tag”=>"", “attached_to”=>"", “compute_attributes”=>{“type”=>“VirtualVmxnet3”, “network”=>“network-79127”}}}, “compute_attributes”=>{“cpus”=>“2”, “corespersocket”=>“2”, “memory_mb”=>“2048”, “firmware”=>“efi”, “cluster”=>“STD-SAND-01”, “resource_pool”=>“Resources”, “path”=>"/Datacenters/DC-test-SBX/vm", “guest_id”=>“rhel8_64Guest”, “hardware_version”=>“Default”, “memoryHotAddEnabled”=>“1”, “cpuHotAddEnabled”=>“1”, “add_cdrom”=>“0”, “boot_order”=>[“network”, “disk”], “start”=>“1”, “annotation”=>"", “scsi_controllers”=>"{“scsiControllers”:[{“type”:“ParaVirtualSCSIController”,“key”:1000}],“volumes”:[{“thin”:true,“name”:“Hard disk”,“mode”:“persistent”,“controllerKey”:1000,“sizeGb”:10,“storagePod”:“RS-SANDBOX-01”,“datastore”:null}]}"}, “architecture_id”=>“1”, “operatingsystem_id”=>“2”, “provision_method”=>“build”, “build”=>“1”, “medium_id”=>“16”, “ptable_id”=>“149”, “pxe_loader”=>“PXELinux UEFI”, “disk”=>"", “root_pass”=>"[FILTERED]", “is_owned_by”=>“4-Users”, “enabled”=>“1”, “model_id”=>"", “comment”=>"", “overwrite”=>“false”}}